package com.starblink.frame.app.widget

import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import androidx.constraintlayout.widget.ConstraintLayout
import com.starblink.frame.app.bean.HomeItem2Bean
import com.starblink.frame.app.databinding.CellMain2ItemBinding

class MainView @JvmOverloads constructor(
    context: Context,
    attrs: AttributeSet? = null,
    defStyleRes: Int = 0
) : ConstraintLayout(context, attrs, defStyleRes)  {
    private val binding: CellMain2ItemBinding = CellMain2ItemBinding.inflate(LayoutInflater.from(context), this, true)

    fun bindModel(item: HomeItem2Bean) {
        binding.tvContent.text = item.title
    }
}